import Api from '../interface/api.interface'
import {client,baseURL} from '../api.manager'
import RoleChecker from '../interceptors/RoleChecker'

class StudentApi implements Api{
    readonly _id: string = 'student'
    readonly checker: RoleChecker = new RoleChecker()

    constructor(){
        
    }


    student_hi(){
        return client.get(`${baseURL}/student/hi`,{headers:{"entity":"student"}})
    }

    handleInterceptor(){
        this.checker.handle()
    }



}

const instance = new StudentApi()


export {
    instance
}






